package org.dromara.crawler.mongo.mongoservice;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mongoplus.service.IService;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.crawler.domain.bo.KnowledgeTargetBo;
import org.dromara.crawler.mongo.mongodomain.KnowledgeTarget;

import java.util.List;
import java.util.Map;

public interface KnowledgeTargetService extends IService<KnowledgeTarget> {
    List<KnowledgeTarget> getAll();//

    KnowledgeTarget queryById(String id);

    List<KnowledgeTarget> queryByCondition(KnowledgeTargetBo knowledgeTargetBo);

    Map<String, Long> getTargetEventFirstLevelStats();

    Page<KnowledgeTarget> queryByPage(KnowledgeTargetBo knowledgeTargetBo, PageQuery pageQuery);

    boolean add(KnowledgeTarget knowledgeTarget);

    boolean deleteByTargetId(String targetId);

    boolean updateByTargetId(KnowledgeTarget knowledgeTarget);




}

